package cn.zhaoyuening.zshop4j.content.service;

import cn.zhaoyuening.zshop4j.common.bean.EasyUiListResult;
import cn.zhaoyuening.zshop4j.common.bean.ZShop4jResponceResult;
import cn.zhaoyuening.zshop4j.manager.pojo.TbContent;
import cn.zhaoyuening.zshop4j.manager.pojo.TbContentCategory;

import java.util.List;

/**
 * Created by Zhao on 2017/4/15.
 */
public interface ContentService {
    EasyUiListResult<TbContent> findByCategoryId(long contentCategoryId,int pageNum,int pageSize);

    List<TbContent> findByCategoryId(long contentCategoryId);

    ZShop4jResponceResult insert(TbContent content);

    ZShop4jResponceResult deleteByIdList(Long[] id,Long categoryId);

    TbContent findById(long id);

    ZShop4jResponceResult updateContent(TbContent content);
}
